package entity;

import java.util.Date;

public class Phone {
    private int id;
    private int inventory;
    private String name;
    private String type;
    private double price;
    private Date date;

    public Phone() {
    }

    public Phone(int inventory, String name, String type, double price, Date date) {
        this.inventory = inventory;
        this.name = name;
        this.type = type;
        this.price = price;
        this.date = date;
    }

    public Phone(int id, int inventory, String name, String type, double price, Date date) {
        this.id = id;
        this.inventory = inventory;
        this.name = name;
        this.type = type;
        this.price = price;
        this.date = date;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getInventory() {
        return inventory;
    }

    public void setInventory(int inventory) {
        this.inventory = inventory;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    @Override
    public String toString() {
        return "Phone{" +
                "id=" + id +
                ", inventory=" + inventory +
                ", name='" + name + '\'' +
                ", type='" + type + '\'' +
                ", price=" + price +
                ", date=" + date +
                '}';
    }
}
